/**
\file IO.h
*/
#pragma once
#include <lostlbase.h>
#include <System.h>
#include "LoDll.h"

namespace lo {

	class User32 : public dll
	{
	public:
		User32() : dll("user32") {}
		static HWND	findWindow( _In_opt_ const char *className = nullptr, _In_opt_ const char *windowName = nullptr );
		/** Loads a UTF-8 string from the resource table of the module with hInstance instance. */
		static string	loadString(UINT id, HINSTANCE hInstance = NULL, const char *defaultString=nullptr);
		/** Displays a message to the user using UTF8 strings. */
		static int	messageBox(	_In_opt_  HWND hWnd, _In_opt_ const char * lpText, _In_opt_  const char * lpCaption, _In_ UINT uType );
		static bool	setDlgItemText( HWND hDlg, int nIDDlgItem, const char * lpString );
	};

}
